#include<iostream>
using namespace std;

int a, n, m, x;
int main()
{


	cout << "cin a,n:";
	cin >> a >> n;
	m = a;
	x=a;
	while (n > 1)
	{
		
		m = m * 10 + a;
		n--;
		x = x + m;

	}

	cout << "a=" << x;

	int key;
	cout << "Press:";
	cin >> key;

	return 0;
}
